package com.free.mini.core.serve.utils;

import cn.hutool.core.util.IdUtil;

/**
 * id生成，生产可使用第三方，比如百度，美团，redis
 * @author dongsufeng
 * @version 4.0
 * @date 2023/8/2 19:24
 */
public class IDGenerate {

    public static long idGenerate(){
        return IdUtil.getSnowflakeNextId();
    }

    public static String idGenerateStr(){
        return IdUtil.getSnowflakeNextIdStr();
    }
}
